﻿import request from '/@/utils/request';
enum Api {
  AddMainView = '/api/mainView/add',
  DeleteMainView = '/api/mainView/delete',
  UpdateMainView = '/api/mainView/update',
  GetMainViewPage = '/api/mainView/page',
  AddTags='/api/mainView/addtags',
  getTags='/api/mainView/tags'
}

// 增加mainview
export const addMainView = (params?: any) =>
	request({
		url: Api.AddMainView,
		method: 'post',
		data: params,
	});

// 增加mainTags
export const addTags = (params?: any) =>
	request({
		url: Api.AddTags,
		method: 'post',
		data: params,
	});

// 删除mainview
export const deleteMainView = (params?: any) => 
	request({
			url: Api.DeleteMainView,
			method: 'post',
			data: params,
		});

// 编辑mainview
export const updateMainView = (params?: any) => 
	request({
			url: Api.UpdateMainView,
			method: 'post',
			data: params,
		});

// 分页查询mainview
export const getMainViewPageList = (params?: any) => 
	request({
			url: Api.GetMainViewPage,
			method: 'get',
			data: params,
		});

// 分页查询mainview
export const getTags = (params?: any) => 
	request({
			url: Api.getTags,
			method: 'get',
			data: params,
		});



